From c584b005711d7fe6d79287a87a5e7152a2050cde Mon Sep 17 00:00:00 2001 From: "cl349@arcadians.cl.cam.ac.uk" Date: Thu, 25 Nov 2004 14:08:23 +0000 Subject: [PATCH] bitkeeper revision 1.1159.194.4 (41a5e757kS3W0lQ0UXkviQYcgBr7Gg) XendDomainInfo.py: Fix check for no configured block devices. --- tools/python/xen/xend/XendDomainInfo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 963a0c8ea8..335da5e486 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -994,13 +994,13 @@ class XendDomainInfo: @return: deferred """ - if (self.get_devices("vbd") == None): + if self.get_devices("vbd") == []: ctrl = xend.blkif_create(self.dom, recreate=self.recreate) back = ctrl.getBackendInterface(0) return back.connect(recreate=self.recreate) else: return None - + def dom_construct(self, dom, config): """Construct a vm for an existing domain. -- 2.30.2